package com.flong.gui;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.Label;
import java.awt.TextField;
@SuppressWarnings("all")
public class TFMathTest2 extends Frame{
	TextField num1;
	TextField num2;
	TextField sum;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new TFMathTest2().launchFrame();
	}
	
	public void launchFrame()
	{
		num1 = new TextField();
		num2 = new TextField();
		sum = new TextField();
		num1.setColumns(10);
		num2.setColumns(10);
		sum.setColumns(15);
		setLayout(new FlowLayout());
		//setSize(500, 30);
		Label lblPlus = new Label("+");
		Button btnEqual = new Button("=");
		btnEqual.addActionListener(new MyListener2(this));
		add(num1);
		add(lblPlus);
		add(num2);
		add(btnEqual);
		add(sum);
		pack();
		setVisible(true);
	}
}




